package com.example.linuxpackage.demos.controller;

import com.example.linuxpackage.demos.entity.MyResponseResult;
import com.example.linuxpackage.demos.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmpController {
    @Autowired
    private  EmpService empService;
    @GetMapping("/selectAll")
    public MyResponseResult selectAll(){
        empService.selectAll();
        return MyResponseResult.success(empService.selectAll());
    }


}
